package com.itheima.ood.demo02;

public class TomCompositionTemplateDemo01 {

    public static void main(String[] args) {

        // 创建TomCompositionTemplate对象
        TomCompositionTemplate tomCompositionTemplate = new TomCompositionTemplate() ;
        tomCompositionTemplate.write();

        System.out.println("-----------------------------------");

        // 创建对象： JackCompositionTemplate
        JackCompositionTemplate jackCompositionTemplate = new JackCompositionTemplate() ;
        jackCompositionTemplate.write();

    }

}
